<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title></title>
<link href="../../skin/default/global.css" rel="stylesheet" type="text/css" />
<link href="../../skin/default/layout.css" rel="stylesheet" type="text/css" />
<script src="../../common/tree/MzTreeView10.js"></script>
<script src="queryTree.action"></script>
</head>

<body class="admin-content admin-panel-body">

	<table class="admin-panel" width="100%" height="100%"  cellSpacing="0" cellPadding="0">
		<thead>
		<tr>
			<td>
				<span class="round"></span>
				<b onClick="tree.focus('101')">题库列表</b>
				<a href="import.jsp" target="main" class="btn"><img src="../../skin/default/excel.gif" />Excel导入</a>
			</td>
		</tr>
		</thead>
		<tbody>
			<tr>
				<td>
				<div class="overflow tree">
					<script type="text/javascript">
						<!--
					    window.tree = new MzTreeView("tree");
					    tree.setIconPath(""); //可用相对路径
					    InitShowTreeInfo(tree);
					    document.write(tree.toString());    //亦可用 obj.innerHTML = tree.toString();
					    //tree.expandAll()
					    //-->
					</script>
				</div>
				</td>
			</tr>
		</tbody>
	</table>
<div class="rightmenu" id="rightmenu">
<div class="rightmenucontent">
<a href="javascript:void(0)" onmousedown = "del()"><img src="../../skin/default/del.gif" />删除分类</a>						
</div>
</div>
<iframe src="" id="subframe" style="display:none"></iframe>
<script src="../../common/jquery-1.3.2.min.js"></script>
<script src="../../common/fun.js"></script>
	<script>
		var list = new KS.List("userlist",true)
		//	list.select("a1")	
		$("a.MzTreeview").live("contextmenu",function(e){
				if($(this).attr("nodeid")=="" || $(this).attr("parentid")!="a") { $("#rightmenu").hide() ; return false;}
				var x= (window.event.clientX+100 > $("body").width())?window.event.clientX-60:window.event.clientX+10;
				var y = window.event.clientY+10;
				$("#rightmenu").show().css({
						left:x,
						top:y
					})
				$(document).click(function(){
						$("#rightmenu").hide()
					})
				return false;
			})
		function del(){
			var id = $("a.selected:first").attr("nodeid");
			$("#rightmenu").hide()
			$("#subframe").attr("src","delClassify.action?cid="+id)
		}
	</script>
</body>

</html>